package day_240521.my_box;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        Group group1 = new Group();// 黄色下划线：参数化类 "Group" 的原始用法
        group1.setGroup("第一组", 4);
        System.out.println(group1.getGroup("第一组"));// 未选中调用原始类型 "day_240521.my_box.Group "的成员" getGroup(V)

        Group<Integer, Student[]> group2 = new Group<>();
        group2.setGroup(2, new Student[]{new Student("student1"), new Student("student2"), new Student("student3")});
        group2.getGroup(2);
        System.out.println(Arrays.toString(group2.getGroup(2)));

        Group<String, String> group3 = new Group<>("4", "4");
        group3.getGroup("第三组");
        System.out.println(group3.getGroup("第三组"));

    }
}
